package com.cl.blog.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cl.blog.entity.BContent;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cl.blog.vo.AdminSearchVo;
import com.cl.blog.vo.ClientAddContent;
import com.cl.blog.vo.ContentSearchVo;
import com.fasterxml.jackson.core.JsonProcessingException;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
* @author object
* @description 针对表【b_content】的数据库操作Service
* @createDate 2024-03-14 17:13:59
*/
public interface BContentService extends IService<BContent> {


	Page<BContent> queryList(Page page,Long id);

	Page<BContent> PageList(Page page, Long id);


	List<BContent> selectByStatus(Integer status);

	Object searchPage(Page<BContent> objectPage, AdminSearchVo adminSearchVo);

	boolean insertBlog(ClientAddContent content, String token);

	Object getPublished(HttpServletRequest request, Integer status);

	Object getCollect(HttpServletRequest request);

	Object getLike(HttpServletRequest request);

	Object selectSearch(ContentSearchVo searchVo, HttpServletRequest request);

	Object pigeonhole();

	Object statistics() throws JsonProcessingException;

	Object getMonthByYear(String year) throws JsonProcessingException;
}
